package com.laogao.lesson024.controller;

import com.laogao.lesson024.common.Result;
import com.laogao.lesson024.common.ResultUtils;
import com.laogao.lesson024.dto.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <b>description</b>： Java进阶、性能优化实战案例100讲，微信公众号:程序员恰恰，源码 & 文档 & 技术支持，请加个人微信号：it3306 <br>
 * <b>time</b>：2025/4/243 6:50 <br>
 * <b>author</b>：ready lao_gao
 */
@RestController
public class TestController {

    /**
     * http://localhost:8080/getUser
     *
     * @return
     */
    @GetMapping("/getUser")
    public Result<User> getUser() {
        User user = new User();
        user.setId("001");
        user.setName("老高");
        user.setPhone("18612345678");
        user.setEmail("lao_gao");
        user.setIdCard("420123432112121332");
        user.setPassword("123456");
        user.setAddress("杭州市余杭区小有街道");
        user.setBankCard("6226090211114567");
        return ResultUtils.success(user);
    }
}
